/**
 * user service
 */
import axios from "./../utils/request"

let get=async (id)=>{
    return new Promise((resolve,reject)=>{
        setTimeout(() => {
            resolve({
                id:id,
                username:"admin",
                password:"123456"
            })
        }, 500);
    });
}

function login(params){
    return axios.post("/api/user/login",params);
}


export default {
    get,
    login
}
